using Net35.Xrm.Sdk;
using System;
using System.Runtime.Serialization;
namespace Net35.Crm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
	public sealed class ModifyAccessRequest : OrganizationRequest
	{
		public EntityReference Target
		{
			get
			{
				if (base.Parameters.Contains("Target"))
				{
					return (EntityReference)base.Parameters["Target"];
				}
				return null;
			}
			set
			{
				base.Parameters["Target"] = value;
			}
		}
		public PrincipalAccess PrincipalAccess
		{
			get
			{
				if (base.Parameters.Contains("PrincipalAccess"))
				{
					return (PrincipalAccess)base.Parameters["PrincipalAccess"];
				}
				return null;
			}
			set
			{
				base.Parameters["PrincipalAccess"] = value;
			}
		}
		public ModifyAccessRequest()
		{
			base.RequestName = "ModifyAccess";
			this.Target = null;
			this.PrincipalAccess = null;
		}
	}
}
